package com.museum.guide.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 讲解预约实体类
 */
@Data
@TableName("guide_appointment")
public class GuideAppointment {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 讲解员ID
     */
    private Long guideId;

    /**
     * 预约日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate appointmentDate;

    /**
     * 时间段ID
     */
    private Long timeSlotId;

    /**
     * 预约人姓名
     */
    private String visitorName;

    /**
     * 预约人手机号
     */
    private String visitorPhone;

    /**
     * 参观人数
     */
    private Integer visitorCount;

    /**
     * 预约讲解藏品IDs
     */
    private String collectionIds;

    /**
     * 预约讲解藏品IDs
     */
    private String collectionNames;

    /**
     * 状态：PENDING-待审核，APPROVED-已通过，REJECTED-已拒绝，CANCELED-已取消
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}